﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.model
{
    public class AdditionalFunction : INotifyPropertyChanged
    {
        bool noiseControl;
        bool feedbackControl;
        bool batteryAlarm;
        bool volumeControl;
        bool crescendo;

        public bool NoiseControl
        {
            get { return noiseControl; }
            set { noiseControl = value; NotifyPropertyChanged("NoiseControl"); }
        }

        public bool FeedbackControl
        {
            get { return feedbackControl; }
            set { feedbackControl = value; NotifyPropertyChanged("FeedbackControl"); }
        }

        public bool BatteryAlarm
        {
            get { return batteryAlarm; }
            set { batteryAlarm = value; NotifyPropertyChanged("BatteryAlarm"); }
        }

        public bool VolumeControl
        {
            get { return volumeControl; }
            set { volumeControl = value; NotifyPropertyChanged("VolumeControl"); }
        }

        public bool Crescendo
        {
            get { return crescendo; }
            set { crescendo = value; NotifyPropertyChanged("Crescendo"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
